package light.head.dao.el;

import java.util.List;

import light.head.framework.base.BaseDAO;
import light.head.model.el.CourseLecturer;
import light.head.model.el.FrontCourse;

import org.springframework.stereotype.Service;
@Service
public class FrontCourseDAO extends BaseDAO<FrontCourse, Integer>{
	public List<FrontCourse> findCc(Integer cc){
		String hql = "FROM FrontCourse c WHERE c.cc = ? ";
		return find(hql,cc);
	}
	public List<CourseLecturer> findLc(Integer cc){
		String hql = "FROM CourseLecturer c WHERE c.cc = ? ";
		return find(hql,cc);
	}
}
